{include file="zp_includetop" /}
<title>{notempty name="list_title"}{$list_title}{else/}{$list_name}_娱乐明星_明星大全{$page}{/notempty}{neq name="list_page" value="1"}第{$list_page}页{/neq} - {$sitename}</title>
<meta name="keywords" content="{notempty name="list_keywords"}{$list_keywords}{else/}{$list_name},娱乐明星,电影明星,电视剧明星,明星大全{/notempty}">
<meta name="description" content="{notempty name="list_description"}{$list_description}{else/}{$sitename}为您提供各国男女明星的详细资料、近况已经最新电影，电视剧在线观看。{/notempty}">
<link type="text/css" rel="stylesheet" href="{$apicss}css/other.min.css"/>
{include file="zp_include" /}
{php}$ii=0;
    if($param['order'])
    $s_order=$param['order']." desc";
    else
    $s_order="addtime desc";  
	$volist = zanpian_mysql_star('limit:30;field:star_id,star_cid,star_name,star_letters,star_pic,star_gj,star_zy,star_area;letter:'.$param[letter].';xb:'.$param[xb].';zy:'.$param[zy].';area:'.$param[area].';page:true;p:'.$list_page.';order:star_'.$s_order.';');
	{/php}
</head>
<body>
{include file="zp_header" /}
<div class="location">
    <div class="tab-a list-search w1214">
    <div class="listnav">
<div class="wz fn-right"><span>您所在的位置：</span><a href="{$siteurl}" title="{$sitename}" >首页</a>
<em>&gt;&gt;</em><a class="current">明星列表</a></div></div>
    <div class="l-s-title">分类索引</div>
    <div class="l-s-r">
      <h4 class="name aleft">共有:(<font color="#FF0000">{$volist.0.page.pagecount}</font>)个明星资料</h4>
       <span><a href="{:zanpian_type_url('home/star/type',array('id'=>$list_id,'dir'=>$list_dir,'sex'=>"",'zy'=>"",'area'=>"",'letter'=>"",'order'=>""))}"  class="conreset">重置条件</a></span>
      <p class="conbread"></p>
    </div>
           </div>
    </div>
<div class="list-fen">
<div class="tab-a list-f-mod w1214">
  <div class="mod-fl letter">
      <h3>字母：</h3>
      <ul> 
    <li><a {empty name="param.letter"}class="current"{/empty} href="{:zanpian_type_url('home/star/type',array('id'=>$list_id,'dir'=>$list_dir,'sex'=>urlencode($param['sex']),'zy'=>urlencode($param['zy']),'area'=>urlencode($area),'letter'=>"",'order'=>$param['order']))}"   data="letter-0">全部</a></li>
    {volist name="s_letter" id="letter"}<li> <a href="{:zanpian_type_url('home/star/type',array('id'=>$list_id,'dir'=>$list_dir,'sex'=>urlencode($param['sex']),'zy'=>urlencode($param['zy']),'area'=>urlencode($area),'letter'=>$letter,'order'=>$param['order']))} " {eq name="letter" value="$param['letter']"}class="current"{/eq} data='letter-{$letter}'>{$letter}</a></li>{/volist} 
     </ul> 
     </div> 
     <div class="mod-fl">
<h3>地区：</h3>
<ul>
  <li><a {empty name="param.area"}class="current"{/empty}href="{:zanpian_type_url('home/star/type',array('id'=>$list_id,'dir'=>$list_dir,'sex'=>urlencode($param['sex']),'zy'=>urlencode($zy),'area'=>"",'letter'=>$param['letter'],'order'=>$param['order']))}" data="area-0">全部</a></li> 
     {volist name="s_area" id="area" offset="0" length='13'}<li><a href="{:zanpian_type_url('home/star/type',array('id'=>$list_id,'dir'=>$list_dir,'sex'=>urlencode($param['sex']),'zy'=>urlencode($zy),'area'=>urlencode($area),'letter'=>$param['letter'],'order'=>$param['order']))}" {eq name="area" value="$param['area']"}class="current"{/eq} data='area-{$area|urlencode}'>{$area}</a></li>{/volist}
     </ul>
     </div>    
<div class="mod-fl">
<h3>性别：</h3><ul>
 <li><a {empty name="param.xb"}class="current"{/empty} href="{:zanpian_type_url('home/star/type',array('id'=>$list_id,'dir'=>$list_dir,'sex'=>"",'zy'=>$param['zy'],'area'=>urlencode($param['area']),'letter'=>$param['letter'],'order'=>$param['order']))}" data="xb-0">全部</a></li>
<li><a href='{:zanpian_type_url('home/star/type',array('id'=>$list_id,'dir'=>$list_dir,'sex'=>urlencode("男"),'zy'=>$param['zy'],'area'=>urlencode($param['area']),'letter'=>$param['letter'],'order'=>$param['order']))}' {php} if($param[xb]=="男") echo "class='current'"; {/php} data="xb-%E7%94%B7">男演员</a></li>
<li><a href='{:zanpian_type_url('home/star/type',array('id'=>$list_id,'dir'=>$list_dir,'sex'=>urlencode("女"),'zy'=>$param['zy'],'area'=>urlencode($param['area']),'letter'=>$param['letter'],'order'=>$param['order']))}' {php} if($param[xb]=="女") echo "class='current'"; {/php} data="xb-%E5%A5%B3">女演员</a></li> 
</ul>
  </div>  <div class="mod-fl">
  {php}$arrayzy=array("演员","歌手","模特","主持","导演","制片","监制","编剧","配音");{/php}
  <h3>职业：</h3>
  <ul>
 <li><a {empty name="param.zy"}class="current"{/empty} href="{:zanpian_type_url('home/star/type',array('id'=>$list_id,'dir'=>$list_dir,'sex'=>urlencode($param['sex']),'zy'=>"",'area'=>urlencode($param['area']),'letter'=>$param['letter'],'order'=>$param['order']))}" data="xb-0">全部</a></li>
 {volist name="arrayzy" id="zy" offset="0" length='13'}                           
<li><a href='{:zanpian_type_url('home/star/type',array('id'=>$list_id,'dir'=>$list_dir,'sex'=>urlencode($param['sex']),'zy'=>urlencode($zy),'area'=>urlencode($param['area']),'letter'=>$param['letter'],'order'=>$param['order']))}' {eq name="zy" value="$param['zy']"}class="current"{/eq} data='zy-{$zy|urlencode}'>{$zy}</a></li>
   {/volist}   
</ul>
</div>
</div>
</div>
    <div class="mod-fl-more"><a rel="nofollow" href="javascript:void(0);" ><span id="list-url-more">更多</span></a>
    </div>
	<div class="list-u">
<div class="tab-a list-all w1214">
<div class="list-title"><div class="list_s_im"><a rel="nofollow" class='poster_btn currt' data="picm-1" title="图片模式"></a></div>
<div class="list-r-tool">
<a href="{:zanpian_type_url('home/star/type',array('id'=>$list_id,'dir'=>$list_dir,'sex'=>urlencode($param['sex']),'zy'=>urlencode($param['zy']),'area'=>urlencode($param['area']),'letter'=>$letter,'order'=>"addtime"))}" 
{php}if($param[order]=="") echo "class='newico curr'"; else if($param[order]=="addtime") echo "class='newico curr'"; else echo ""{/php} data="order-id"><em></em>最新</a>
<a href="{:zanpian_type_url('home/star/type',array('id'=>$list_id,'dir'=>$list_dir,'sex'=>urlencode($param['sex']),'zy'=>urlencode($param['zy']),'area'=>urlencode($param['area']),'letter'=>$letter,'order'=>"hits"))}"
{php}if($param[order]=="hits") {echo "class='curr hotico'";}else{echo "";} {/php} data="order-hits"><em></em>人气</a>
</div>
</div>
<ul  class="mx_list_ul" id="contents" style="padding-left:15px;">
{notempty name="volist"}
{volist name="volist" id="zpstar"}
    <li><a class="star-img" href="{$zpstar.star_readurl}" title="{$zpstar.star_name}资料" target="_blank"><img class="loading" src="{$apicss}zanpian/images/220x146.jpg" data-original="{$zpstar.star_picurl}" alt="{$zpstar.star_name}" /></a>
    <div class="star-info">
<h2><a href="{$zpstar.star_readurl}" target="_blank">{$zpstar.star_name}</a></h2>
<p>职业：{$zpstar.star_zy}</p>
<p>国籍：{$zpstar.star_area}</p>
</div>
    </li>
{/volist}{else/}<li class="kong">抱歉，没有找到相关明星！</li>{/notempty}
  </ul>
  {notempty name="volist"}
 <div class="tab-a uipages pages w1214" id="long-page"><ul class="pagination"><span class="total">共{$volist.0.page.pagecount}条数据&nbsp;页次:{$volist.0.page.currentpage}/{$volist.0.page.totalpage}页</span>{$volist.0.page.pageurl}</ul></div>  
 {/notempty}
</div>
</div>
{include file="zp_footer" /}
<!--底部结束-->
<script type="text/javascript">
window.onerror=function(){
	return true;
}
Root='/';
var windowurl='';
var windowuall='';
if(window.location.href.indexOf('show')>0){
  windowurl=window.location.href;
}
var parms='';
var pid='2';
$('.mod-fl ul li a').click(function (e){
if($(this).attr('data').indexOf('mcid')==0){
$("#curlist").html("&raquo;"+$(this).html());
}
	var constr='';
	var curobj=$(this);
	if(parms!=undefined&&parms!=null)
     {
		var curdata=$(this).attr('data').split('-');
		parms[curdata[0]]=curdata[1];
		url=parseurl(parms,'-p-1');
		curobj.parent().siblings().children("a").removeClass('current');
		curobj.addClass('current');
	    pagegooo(url);
	   $('.mod-fl ul li a').each(function(e){
	     if( $(this).attr('class')=='current')
		  {
	       if($(this).html() == '全部')
	       constr+=' ';
	       else
	     constr +='<em>'+$(this).html()+'</em>';
	     }
    	});//index  bread
	if(constr !='')
	$('.conbread').html(constr);
   }
return false;
});
function pagegooo(url){ 
url=url+".html";
   if(($('#contents li').length > 3)) $("html,body").animate({scrollTop:$("#contents").offset().top - 93},500);
	$("#contents").html('<div class="load">努力加载中……</div>');
	$.get(url, function(data,status) {
	 var value=jQuery('#contents', data).html();
      if(value=='') {
	  value=  '<div class="kong">抱歉，没有找到相关内容！</div>';
	  }  
	 $("#contents").html(value);
	 $("#short-page").html(jQuery('#short-page', data).html())
	 $("#long-page").html(jQuery('#long-page', data).html())
     $(".pages a").click(function (e){
                        e.preventDefault();
                        var curdata=$(this).attr('data').split('-');
                        parms[curdata[0]]=curdata[1];
                        var url=parseurl(parms);
                        pagegooo(url);
                        return false;
                    });
	});
}
$(function(){
parms=eval("({'id':'{$list_id}','xb':'{$param.xb}','zy':'{$param.zy}','area':'{$param.area}','letter':'{$param.letter}','order':'addtime','picm':'1','p':'1'})");
$('.conreset').click(function(e){
parms=eval("({'id':'{notempty name="list_pid">{$list_pid}{else /}{$list_id}{/notempty}','letter':'0','area':'0','xb':'0','zy':'0','order':'addtime','p':'1'})");
var hrf =Root + 'index.php?s=star-type-id-{notempty name="list_pid">{$list_pid}{else /}{$list_id}{/notempty}.html';
hrf = hrf.substring(0,hrf.indexOf(".html"));
pagegooo(hrf);
$(".uipages a").click(
	function (e){
	pagegooo($(this).attr('href'));
	return false;
	}
	);
   var constrf='';
    $('.mod-fl ul li a').each(function(e){
        if($(this).html() != '全部' && $(this).attr('class')=='current' ){
            constrf +='<em>'+$(this).html()+'</em>';
        }
    });
if(constrf !=''){
        $('.conbread').html(constrf);
    }
    $('.mod-fl ul li a').each(function(e){
	$(this).removeClass('current');
	 if($(this).html() == '全部'){
	  $(this).attr('class','current');
	  $('#curlist').html("全部");
	  $('.conbread').html('');
	   }
	});
	return false;
 });
});
function parseurl(rr,p){
  var url=Root + 'index.php?s=star-type';
  for(var c in rr){
     if(rr[c]!='0'){
        if(p){
            url=url+"-"+c+"-"+rr[c]+p;
	    }else{
	        url=url+"-"+c+"-"+rr[c];	
	    }      
	}
  }
  return url;
}
$(function(){
    $('.pages a').click(function (e){
                e.preventDefault();
                $(this).addClass('curr');
                $(this).siblings().removeClass('curr');
                var curdata=$(this).attr('data').split('-');
                parms[curdata[0]]=curdata[1];
                var url=parseurl(parms);
                pagegooo(url);
            }
);
	    $('.list-r-tool a').click(function (e){
                e.preventDefault();
                $(this).addClass('curr');
                $(this).siblings().removeClass('curr');

                var curdata=$(this).attr('data').split('-');
                parms[curdata[0]]=curdata[1];
                var url=parseurl(parms,'-p-1');
                pagegooo(url);
            }
);
	 $('.list_s_im a').click(function (e){
               e.preventDefault();
               var constr='';
               var curobj=$(this);
               var url = curobj.attr('href');
                curobj.parent().siblings()
				$(this).siblings().removeClass('currt');
                curobj.addClass('currt');
   var url='';
		if(parms!=undefined&&parms!=null){
			var curdata=$(this).attr('data').split('-');
			parms[curdata[0]]=curdata[1];
			if(curdata[1]=='1'){
				$("#contents").removeClass('list_module_list');
				$("#contents").addClass('list_module_img');
			}else{
				$("#contents").addClass('list_module_list');
				$("#contents").removeClass('list_module_img');
		}
		}
}
);
});
conbread();
function  conbread(){
	var atag = $('.mod-fl ul li a');
	var constr="";
$.each(atag, function(i,val){      
       var data = val.data;
	   if(windowurl.indexOf(data)!=-1){
	   	     constr +='<em>'+val.innerHTML+'</em>';
			  $(this).attr('class','current');
	   }
  }); 
  $('.conbread').html(constr);
}
</script>
</body>
</html>